package com.lyy.consolidate;


/**
 * @Author:  GZQ
 * @date:  2024/11/29 22:41
 * @description: 巩固练习2
 */

// 子类
class Professor extends Teacher {

    // 特有的属性..
    public Professor(String name, int age, String post, double salary, double level) {
        super(name, age, post, salary, level);
    }

    @Override
    public void introduce() {
        System.out.println("这是教授信息: ");
        super.introduce();
    }
}
